<template>
    <el-form-item label="字段校验">
        <el-select v-model="optionModel.validation" placeholder="">
            <el-option v-for="item in state.options" :key="item" :value="item" :label="item"/>
        </el-select>
    </el-form-item>
</template>

<script setup>
import { reactive } from 'vue';

defineOptions({
    name:"validation-editor"
})

const props = defineProps({
    optionModel:{
        type:Object,
        default:()=>({})
    }
})

const state = reactive({
    options:[
        "数字",
        "字母"
    ]
})
</script>

<style lang='scss' scoped></style>